<!--
 * @Author: 袁锐城
 * @Date: 2024-06-04 09:12:26
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-06-11 16:01:37
 * @Description: 
-->
<template>
    <div class="app">
        <div id="siderNav">
            <siderNav></siderNav>
        </div>
        <div id="topHeader">
           <topHeader></topHeader>
        </div>
        <div id="container">
            <router-view></router-view>
        </div>

        <el-dialog
        :visible.sync="dialogVisible"
        :before-close="handleClose"
        :show-close='false'
        >
            <div slot="title" class="dialog_title">
                <div class="dialog_text">需要一些帮助？</div>
                <div class="close_Box" @click="handleClose">
                    <svg-icon icon="close" width="16" height="15"></svg-icon>
                </div>
            </div>
            <div class="dialog_content">
                <svg-icon icon="help" width="464" height="192" class="dialog_helpicon"></svg-icon>
                <div class="dialog_helptext">请描述您的问题，我们的专家将在 24 小时内答复您。</div>
                <el-form class="dialog_form">
                    <el-form-item label="问题主题">
                        <el-select class="custom_select">
                            <el-option label="问题" value="1"></el-option>
                            <el-option label="建议" value="2"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="描述">
                        <el-input placeholder="请添加请求的一些描述" class="custom_input" type="textarea"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-row align="middle" type="flex" justify="end">
                            <el-col :span="6">
                                <el-button class="custom_btn">发送请求</el-button>
                            </el-col>
                        </el-row>
                    </el-form-item>
                </el-form>
            </div>
        </el-dialog>
    </div>  
</template>
<script>
import topHeader from '@/components/topHeader.vue'
import siderNav from '@/components/siderNav.vue'
export default {
    name:'homePage',
    components:{
        topHeader,
        siderNav
    },
    computed:{
        dialogVisible(){
            return this.$store.getters.isShowSupport
        }
    },
    methods:{
        handleClose(){
            this.$store.dispatch('common/setIsShowSupport')
        }
    }
}
</script>
<style lang="scss">
.app{
    width: 100%;
    height: 100%;
    background: #B0D4FF;
}
#siderNav{
    position: fixed;
    left: 20px;
    top:20px;
    height: calc(100% - 40px);
    width: 200px;
    background: rgba(255, 255, 255, 1);
    border-radius: 24px;
    box-shadow: 0px 6px 58px  rgba(196, 203, 214, 0.1);
    z-index: 3;
    overflow: hidden;
}
#topHeader{
    height: 48px;
    width:calc(100% - 250px);
    background-color:transparent;
    position: fixed;    
    top:20px;
    right: 0;
    z-index: 2;
}
#container{
    width: 100%;
    height: 100%;
    padding-left: 250px;
    padding-top: 68px;
    background: rgba(243, 249, 253, 1);
    z-index: 1;
    color:#000;
}

.el-dialog__wrapper {
  .el-dialog {
    border-radius: 10px;
    width: 584px;
    height: 795px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 6px 58px  rgba(121, 145, 173, 0.2);
  }
  .el-dialog__header {
    height: 99px;
    padding:0;
    
 }
 .close_Box{
    width: 44px;
    height: 44px;
    opacity: 1;
    border-radius: 14px;
    background: rgba(244, 249, 253, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
 }
 .close_Box:hover{
    background-color: rgba(244, 249, 253, 1.2);
 }
 .dialog_title{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .dialog_text{
        color: rgba(10, 22, 41, 1);
        margin-left: 60px;
        font-size: 22px;
    }
 }
 .el-dialog__body{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
 }
 .dialog_content{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: start;
    .dialog_helpicon{
        margin-top: 13px;
    }
    .dialog_helptext{
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0px;
        line-height: 23.17px;
        color: rgba(10, 22, 41, 1);
        margin-bottom: 32px;
    }
    .dialog_form{
        width: 464px;
    }
    .custom_select{
        width: 464px;
        height: 49.96px;
        .el-input__inner{
            height: 49.96px !important;
            border-radius: 14px;
            background: rgba(255, 255, 255, 1);
            border: 1px solid rgba(216, 224, 240, 1);
            box-shadow: 0px 1px 2px  rgba(184, 200, 224, 0.22);
        }
    }
    .custom_input{
        width: 464px;
        height: 120px;
        .el-textarea__inner{
            height: 120px !important;
            border-radius: 14px;
            background: rgba(255, 255, 255, 1);
            border: 1px solid rgba(216, 224, 240, 1);
            box-shadow: 0px 1px 2px  rgba(184, 200, 224, 0.22);
        }
    }
    .custom_btn{
        width: 108px;
        height: 48px;
        opacity: 1;
        border-radius: 14px;
        background: rgba(63, 140, 255, 1);
        box-shadow: 0px 6px 12px  rgba(63, 140, 255, 0.26);
        font-size: 16px;
        color: rgba(255, 255, 255, 1);

    }
 }
 
}
</style>
